<template>
  <div class="uni-dialog uni-dialog-table uni-center-xy" v-if="visible">
    <div class="uni-dialog-title">互联互通</div>
      <iframe :src="iframeUrl" width="100%" height="100%" frameborder="0" scrolling="no" id="iframename"
              name="iframename"></iframe>
      <div class="uni-dialog-close uni-center-x" @click="visible = false"></div>
  </div>
</template>
<script>

  import Vue from 'vue'
  import dataV from '@jiaminghi/data-view'
  Vue.use(dataV)

  export default {
    name: 'IframeDialog',
    data() {
      return {
        visible: false,
        iframeUrl: ''
      }
    },
    components: {},
    methods: {
      show(iframeUrl) {
        this.visible = true
        this.iframeUrl = iframeUrl
        // console.log("************" + iframeUrl)
      },
      hide() {
        this.iframeUrl = ''
        this.visible = false
      }
    }
  }
</script>
<style lang="scss" scoped="scoped">
  .uni-dialog.uni-dialog-table {
    width: 3840px;
    height: 2160px;
    z-index: 101;
    top: 55%;
    box-sizing: border-box;
    background-image: url(../../assets/screen/video_bg.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-size: 30px;
    padding: 0px 50px 300px;
    text-align: center;
    line-height: 1.8;
    .uni-dialog-title {
      font-size: 80px;
      line-height: 108px;
      letter-spacing: 8px;
      text-shadow:0px 0px 100px rgba(1,29,116,0.85);
      margin-top: 40px;
      margin-bottom: 50px;
      color: #FFFFFF;
      height: 108px;
    }

    .uni-dialog-close {
      top: 50px;
      right: 0px;
      left: auto;
      width: 160px;
      height: 160px;
      position: absolute;
      cursor: pointer;
    }
  }
</style>
